/*
 *
 * File:   Playlist.h
 *
 * Created on 13. Juni 2011, 14:16
 */

#ifndef _PLAYLIST_H
//#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
//#include <windows.h>

#define	_PLAYLIST_H

using namespace std;

class Playlist {
private:
    vector<string>* list; 
    int position;
    string filePath;
public:
    Playlist();
    Playlist(const Playlist&);
    Playlist(vector<string>*);
    Playlist(vector<string>*, string);
    ~Playlist();
    void addToList(string, int);
    void addToListFirst(string);
    void addToListLast(string);
    void removeFromList(string);
    void removeFromList(int);
    void removeFirstFromList();
    void removeLastFromList();
    void setPosition(int position);
    vector<string>* getList();
    string switchToNext();
    string switchToLast();
    string switchToFirst();
    string switchToPrevious();

    string getSelectedElement();
    int getLength();
    int getSelectedIndex();
};


#endif	/* _PLAYLIST_H */

